package me.stephenj.experiment2.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @Title Mails.java
 * @Description Mails类
 * @author 张润天
 * @Time 2020/4/21 10:48
 * @version v0.01
 */

public class Mails {
    /**
     * @ClassName Mails.java
     * @Description Mails类
     * @Field ID: 邮箱组编号
     * @Field MailIDA: 邮箱编号
     * @Field MailIDB: 邮箱编号
     */
    private int ID;
    private int MailIDA;
    private int MailIDB;

    public Mails() {
    }

    public List<Integer> getList() {
        List<Integer> mailsIDs = new ArrayList<>();
        if (this.MailIDA != 0) {
            mailsIDs.add(this.MailIDA);
        }
        if (this.MailIDB != 0) {
            mailsIDs.add(this.MailIDB);
        }
        return mailsIDs;
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public int getMailIDA() {
        return MailIDA;
    }

    public void setMailIDA(int mailIDA) {
        MailIDA = mailIDA;
    }

    public int getMailIDB() {
        return MailIDB;
    }

    public void setMailIDB(int mailIDB) {
        MailIDB = mailIDB;
    }
}
